OBJS = readconf.o do_op_set.o klist.o 
CFLAGS = -g -Wall -Werror -Iinclude/ -fpic -c 


all: readconf.a 


%.o: %.c
	@$(CC) $*.c $(CFLAGS) 
	@echo "CC 	" $*

readconf.a: $(OBJS)
	@$(AR) -cr libreadconf.a $(OBJS)
	@echo "AR 	" libreadconf.a 

readconf.so: $(OBJS)
	@$(LD) $(OBJS) -o readconf.so --shared 


.PHONY clean:
	rm $(OBJS) readconf.a -f 

